<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>蚂蚁生财</title>
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
  </head>
  <body>
    <div id="app"></div>
    <script type='text/javascript' src='/static/js/zepto.min.js' charset='utf-8'></script>
    <script type="text/javascript" src='/static/js/jweixin-1.0.0.js' charset='utf-8'></script>
    <script type="text/javascript" src='/static/js/store.min.js' charset='utf-8'></script>
    <script type="text/javascript">
    // 关闭SUI的路由
    $.config = {
      router: false
    }
    // 微信配置参数
    $.sign = {
      appId: '{sign.appId}',
      timestamp: '{sign.timestamp}',
      nonceStr: '{sign.nonceStr}',
      signature: '{sign.signature}',
    }
    function getToken(res) {
      store({token: res})
      $.ajax({
        url: 'http://www.mayishengcai.com/VoteManager/rest/get/token/' + res,
        type: 'get',
        async: false,
        dataType: 'jsonp',
        jsonp: 'callback',
        jsonpCallback: 'jsonpCall',
        success: function (data) {
          if (data.success) {
            store({customerId: data.data.id})
            store({qrCodeUrl: data.data.qrCodeUrl})
          }
        }
      })
    }
    </script>
    <script type='text/javascript' src='/static/js/sm.min.js' charset='utf-8'></script>
  </body>
</html>